package com.neu.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neu.entity.Disease;
import com.neu.service.DiseaseService;
import com.neu.util.JsonResult;
import com.neu.util.ResultCode;





@RestController
@CrossOrigin
@RequestMapping("/his/disease")
public class DiseaseController {
	@Autowired
	private DiseaseService diseaseService;
//		根据疾病分类查询疾病信息 并分页
	@GetMapping("/get_disease")
	public JsonResult<List<Disease>> getdiseaseInfo(int diseCategoryID,int page,int limit) {

		return new JsonResult<List<Disease>>();		
	}
//	添加疾病信息
	@PostMapping("/add_disease")
	public JsonResult<Boolean> addDisease(@RequestBody Disease disease) {

			return new JsonResult<Boolean>();
	}
//	批量删除多个
	@PostMapping("/delete_disease_more")
	public JsonResult<Boolean> delDiseaseByIds(@RequestBody Integer [] ids) {

			return new JsonResult<Boolean>();

	}
//	修改疾病信息
	@PostMapping("/update_disease")
	public JsonResult<Boolean> updateDisease(@RequestBody Disease disease) {


			return new JsonResult<Boolean>();
		
	}
	
}
